package com.songlanyun.modules.information.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.information.entity.InformationEntity;
import com.songlanyun.modules.information.model.vo.InformationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 资讯分类
 *
 * @author WuChao
 * @email songlanyun@gmail.com
 * @date 2022-11-18 09:52:58
 */
@Mapper
public interface InformationDao extends BaseMapper<InformationEntity> {

    IPage<InformationVo> queryPage(IPage<InformationVo> page, @Param("params") Map<String, Object> params);

    IPage<InformationVo> apiPage(IPage<InformationVo> page, @Param("params") Map<String, Object> params);

    List<InformationEntity> getListTitleAndId();
}
